<?php
include_once(realpath(dirname(__FILE__)) . "/../../../fonctions/authplugins.php");
autorisation("contact");
include_once(realpath(dirname(__FILE__)) . "/Contact.class.php");

$id = $_REQUEST["id"];

$contact = new Contact();
$contact->charger($id);

if(!$contact->lu){
	$contact->lu = 1;
	$contact->maj();
}

?>


<div id="contenu_int"> 
   <p align="left"><span class="lien04"><a href="accueil.php" class="lien04">Accueil</a></span> <img src="gfx/suivant.gif" width="12" height="9" border="0" /><a href="module_liste.php" class="lien04">Modules</a> <img src="gfx/suivant.gif" width="12" height="9" border="0" /><a href="module.php?nom=contact" class="lien04"> Gestion des contacts</a></p>

<div id="bloc_description">
	<!-- bloc entete de la rubrique -->   	
		<div class="entete_liste_config">
			<div class="titre">MESSAGE DU CONTACT</div>
			<div class="fonction_valider"><a href="module.php?nom=contact">RETOUR</a></div>
		</div>
<table width="100%" cellpadding="5" cellspacing="0">
    <tr class="claire">
        <th width="133" class="designation" style="height:30px; padding-top:10px;">Nom</th>
        <th style="padding-top:10px;"><?php echo $contact->nom; ?></th>
   	</tr>
   	<tr class="fonce">
        <td class="designation">Pr&eacute;nom</td>
        <td><?php echo $contact->prenom; ?></td>
   	</tr>
   	<tr class="claire">
        <td class="designation">E-mail<br /></td>
        <td><?php echo $contact->email; ?></td>
   	</tr>
   	<tr class="fonce">
        <td class="designation">Adresse<br /></td>
        <td><?php echo $contact->adresse; ?></td>
   	</tr>
   	<tr class="fonce">
        <td class="designation">Code postal<br /></td>
        <td><?php echo $contact->cpostal; ?></td>
   	</tr>
   	<tr class="fonce">
        <td class="designation">Ville<br /></td>
        <td><?php echo $contact->ville; ?></td>
   	</tr>
   	<tr class="fonce">
        <td class="designation">Téléphone<br /></td>
        <td><?php echo $contact->tel; ?></td>
   	</tr>
   	<tr class="claire">
        <td class="designation">date<br /></td>
        <td><?php echo $contact->date; ?></td>
   	</tr>
   	<tr class="fonce">
        <td class="designation">Sujet<br /></td>
        <td><?php echo $contact->sujet; ?></td>
   	</tr>
   	<tr class="claire">
        <td class="designation">Message<br /></td>
        <td><?php echo nl2br($contact->message); ?></td>
   	</tr>
   	</table>
</div>



</div>